package com.eke.action.util;

import java.util.HashMap;
import java.util.Map;
import org.springframework.stereotype.Component;

import com.jason.mvc.annotations.Ajax;
import com.jason.mvc.annotations.Namespace;
import com.jason.mvc.annotations.RequestMapping;

@Namespace("/qiniu")
@Component("qiniuFileUploadAction")
/**
 * 获取七牛上传需要的UpToken
 * @author LS
 *
 */
public class QiniuFileUploadAction {
	@RequestMapping("fileUplaod")
	@Ajax(true)
	public Map<String, Object> uptocken() {
		Map<String, Object> resultMap = new HashMap<String, Object>();
		String token = QianNiuUpload.getUpToken();
		resultMap.put("uptoken", token);
		return resultMap;
	}
}
